import request from '@/utils/request'
import { ADMIN } from '@/config/baseUrl'

/**
 * 获取权限基地
*/
export function getBaseData() {
  return request({
    url: `${ADMIN}/system/reportForm/getUserPermitBaseOrgs`,
    method: 'get'
  })
}

/**
 * 系统登录
*/
export function systomLoginInfo(query) {
  return request({
    url: `${ADMIN}/report/system/countLoginInfo`,
    method: 'post',
    data: query
  })
}

/**
 * 系统登录趋势
*/
export function systomLoginTrend(query) {
  return request({
    url: `${ADMIN}/report/system/countLoginInfoDetail`,
    method: 'post',
    data: query
  })
}